package com.naiterui.ehp.bs.cms.modules.statistics.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bp.bo.statistics.DataReportProductBO;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.statistics.entity.AsProductCount;
import com.naiterui.ehp.bs.cms.modules.statistics.vo.CustomProductVO;

/**
 * 经纪人统计-药品售卖统计
 *
 * @author yangfuya
 * @since 2022/2/16
 */
@DS(DsName.EHP)
public interface AsProductCountMapper extends BaseMapper<AsProductCount> {

    Long getProductPriceTotal(Long docotorId);

    List<CustomProductVO> getProductTotal(Long doctorId, String typeFormat, String dateFormat, String reportDate);

    Page<DataReportProductBO> getPage(@Param("page") IPage page, Long agentId, String dateFormat, String reportDate);
}
